package com.bwie.service.impl;

import com.bwie.service.MyService;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;

/**
 * @description : TODO
 * @Author QiHainan
 * @Create 2025/7/21 21:35
 * @Version 1.0
 */
@Service
public class MyServiceImpl implements MyService {

    @Async
    @Override
    public void sendNotification(String message) {
        System.out.println("sendNotification发送通知："+message);
    }

    @Async
    @Override
    public void sendEmail(String message) {
        System.out.println("sendEmail发送通知："+message);
        throw new RuntimeException("发送通知异常");
    }

    @Async
    @Override
    public void sendSMS(String message) {
        System.out.println("sendSMS发送通知："+message);
    }
}
